/*    */ package com.zimbra.cs.mailbox.acl;
/*    */ 
/*    */ import com.zimbra.common.util.memcached.MemcachedKey;
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ public class EffectiveACLCacheKey
/*    */   implements MemcachedKey
/*    */ {
/*    */   private String mAcctId;
/*    */   private int mFolderId;
/*    */   private String mKeyVal;
/*    */   
/*    */   public EffectiveACLCacheKey(String acctId, int folderId)
/*    */   {
/* 29 */     this.mAcctId = acctId;
/* 30 */     this.mFolderId = folderId;
/* 31 */     this.mKeyVal = (this.mAcctId + ":" + folderId);
/*    */   }
/*    */   
/* 34 */   public String getAccountId() { return this.mAcctId; }
/* 35 */   public int getFolderId() { return this.mFolderId; }
/*    */   
/*    */   public boolean equals(Object other) {
/* 38 */     if ((other instanceof EffectiveACLCacheKey)) {
/* 39 */       EffectiveACLCacheKey otherKey = (EffectiveACLCacheKey)other;
/* 40 */       return this.mKeyVal.equals(otherKey.mKeyVal);
/*    */     }
/* 42 */     return false;
/*    */   }
/*    */   
/* 45 */   public int hashCode() { return this.mKeyVal.hashCode(); }
/* 46 */   public String toString() { return this.mKeyVal; }
/*    */   
/*    */ 
/* 49 */   public String getKeyPrefix() { return "zmEffFolderACL:"; }
/* 50 */   public String getKeyValue() { return this.mKeyVal; }
/*    */ }


/* Location:              /home/mint/zimbrastore.jar!/com/zimbra/cs/mailbox/acl/EffectiveACLCacheKey.class
 * Java compiler version: 7 (51.0)
 * JD-Core Version:       0.7.1
 */